<?php

declare (strict_types = 1);

namespace own\auth;

/**
 * 会员
 */
class Member
{
    private $auth;

    public function __construct()
    {
        $this->auth = request()->auth;
    }
    /**
     * 登录用户信息
     */
    public function auth(): object
    {
        return $this->auth;
    }
    /**
     * 登录用户id
     */
    public function uid(): int
    {
        return $this->auth->uid;
    }
}